package com.situ.spring.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.situ.spring.dao.IStudentDao;
import com.situ.spring.service.IStudentService;

//<bean name="studentService" class="com.situ.spring.service.impl.StudentServiceImpl">
//	<property name="studentDao" ref="studentDao"/>
//</bean>
@Service("studentService")
public class StudentServiceImpl implements IStudentService {
	// <property name="studentDao" ref="studentDao"/>
	@Resource(name="studentDao")
	private IStudentDao studentDao;

	@Override
	public void print() {
		System.out.println("StudentServiceImpl.print()");
		studentDao.print();
	}

	public IStudentDao getStudentDao() {
		return studentDao;
	}

	public void setStudentDao(IStudentDao studentDao) {
		this.studentDao = studentDao;
	}

}
